package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;


/**
   @author KING
   @ClassName: com.qf.entity.Category
   @Description: 该类的功能描述
   @date: 2021/11/6 17:16
*/

@Data
@TableName(value = "p_category")
public class Category {
    /**
     * 分类id
     */
    @TableId(value = "cate_id", type = IdType.ASSIGN_ID)
    private Integer cateId;

    /**
     * 名称，可以是一级菜单、二级菜单。。
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 1表示一级菜单,2表示二级菜单,3表示三菜单,
     */
    @TableField(value = "`level`")
    private Integer level;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 0表示没有父级菜单，有父级菜单则填写对应的父级的
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     *  1表示正常，0删除
     */
    @TableField(value = "`STATUS`")
    private Integer status;

    public static final String COL_CATE_ID = "cate_id";

    public static final String COL_NAME = "name";

    public static final String COL_LEVEL = "level";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_STATUS = "STATUS";
}
